<template>
  <div></div>
</template>

<script>
export default {
  name: 'Index',
  mounted() {
    const { state } = this.$store
    const { user } = state
    if (user.id) {
      const { permissionList } = state
      this.$router.push({
        path: permissionList[0].permissionList[0].route
      })
    } else {
      this.$router.push('/login')
    }
  }
}
</script>

<style scoped></style>
